package com.beehoo.dcportal.dao;

import java.util.List;
import java.util.Map;

import com.beehoo.dcportal.common.base.BaseException;
import com.beehoo.dcportal.model.MenuBean;
import com.beehoo.dcportal.model.PortletBean;
import com.beehoo.dcportal.model.StreetBean;
import com.beehoo.dcportal.model.ThemeBean;

public interface ICommonDao {
	/**
	 * 获取中心的导航菜单
	 * @param streetId
	 * @return
	 * @throws BaseException
	 */
	public List<MenuBean> queryNavMenu(String streetId) throws BaseException;
	
	/**
	 * 查询特殊菜单
	 * @param paramMap
	 * @return
	 * @throws BaseException
	 */
	public List<MenuBean> querySpecialMenu(Map<String, Object> paramMap) throws BaseException;
	
	/**
	 * 获取中心的页面组件
	 * @param streetId
	 * @return
	 * @throws BaseException
	 */
	public List<PortletBean> queryPortlets(String streetId, String themeId) throws BaseException;
	
	/**
	 * 获取中心的页面主题
	 * @param streetId
	 * @return
	 * @throws BaseException
	 */
	public ThemeBean queryTheme(String streetId) throws BaseException;
	
	/**
	 * 获取中心信息
	 * @param streetDomain
	 * @return
	 * @throws BaseException
	 */
	public StreetBean queryStreet(String streetDomain) throws BaseException;
	
	/**
	 * 根据身份证号查询社工编号
	 * @param idCardNum
	 * @return
	 * @throws BaseException
	 */
	public String queryWorderIdByIDCard(String idCardNum) throws BaseException;
	
	/**
	 * 根据身份证号查询居民编号
	 * @param idCardNum
	 * @return
	 * @throws BaseException
	 */
	public String queryResidentIdByIDCard(String idCardNum) throws BaseException;
}
